home *** CD-ROM | disk | FTP | other *** search
- ; ROUTINE TO INSERT A WORD IN AN ORDERED LIST OF WORDS
- ;
- lexinsert proc far
- ;
- push ax ; save registers
-
- call lexsearch ; search for match
- cmp al,0 ; already there?
- je lexinsertexit ; skip if so
- call strinsert ; insert the new word
- ;
- lexinsertexit:
- pop ax ; restore registers
- ret
- ;
- lexinsert endp